import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import 'package:get/get.dart';

import '../../../routes/app_pages.dart';
import '../controllers/turn_on_guide_controller.dart';

class TurnOnGuideView extends GetView<TurnOnGuideController> {
  const TurnOnGuideView({super.key});
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: IconButton(
          icon: Image.asset('assets/images/ic_back2.png',width: 48.w,height: 48.h),
          onPressed: () {
            Get.back();
          },
          tooltip: MaterialLocalizations.of(context).backButtonTooltip, // 可选：设置工具提示
        ),
      ),
      body: Container(
        child: Column(
          children: [
            SizedBox(height: 40.h),
            Text('请确保悟空已经开机.'),
            SizedBox(height: 10.h),
            Text('1.开机过程需要60秒左右'),
            Text('2.当悟空说:"我已经准备好了"即开机成.'),
            SizedBox(height: 20.h),
            Image.asset('assets/images/bg_pop_alphamini_standup.webp'),
            SizedBox(height: 20.h),
            Row(
              children: [
                Checkbox(value: false, onChanged: (v){

                }),
                SizedBox(width: 20.h),
                Text('悟空开机成功.')
              ],
            ),
            SizedBox(height: 40.h),
            ElevatedButton(onPressed: (){
              Get.toNamed(Routes.DEVICE_CONNECTION);
            }, child: Text('下一步'))



          ],
        ),
      ),
    );
  }
}
